import java.util.Calendar;
import java.util.Date;

public class LogHelper {
    static void messageInternal(String messageType, Object object, String functionName, String messageContent) {
        Date date = new Date();
        String dateStr = date.toString();
        System.out.println(dateStr + " [" + messageType + "] " + object.getClass().getName() + " => " +
                functionName + "(): " + messageContent);

    }

    static void messageInfo(Object object, String functionName, String messageContent) {
        messageInternal("Info", object, functionName, messageContent);
    }

    static void messageWarning(Object object, String functionName, String messageContent) {
        messageInternal("Warning", object, functionName, messageContent);
    }

    static void messageError(Object object, String functionName, String messageContent) {
        messageInternal("Error", object, functionName, messageContent);
    }

    static void messageFatal(Object object, String functionName, String messageContent) {
        messageInternal("Fatal Error", object, functionName, messageContent);
    }
}
